import 'package:flutter/material.dart';
import 'package:zrjz/comm/constants/constants.dart';
import 'package:zrjz/comm/utils/ex_widget.dart';

class PermissionDescDialog extends StatelessWidget {
  final String permissionDesc;

  const PermissionDescDialog(this.permissionDesc, {super.key});

  @override
  Widget build(BuildContext context) {
    return Align(
      alignment: Alignment.topCenter,
      child: Container(
        margin: const EdgeInsets.symmetric(vertical: 80),
        padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
        decoration: BoxDecoration(
          color: DarkThemeUtil.multiColors(const Color(0XB3000000),darkColor: ColorConstants.darkBlackItem) ,
          borderRadius: BorderRadius.circular(10),
        ),
        child: Text(
          permissionDesc,
          style: const TextStyle(color: Colors.white, fontSize: 15),
          textAlign: TextAlign.center,
        ),
      ).constrained(width: 280),
    );
  }
}
